Optimal. Leaf size=41 \[ -\frac {\tanh ^{-1}(\cosh (c+d x))}{a d}+\frac {\cosh (c+d x)}{d (a+i a \sinh (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 41, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {2826, 3855,
2727} \begin {gather*} -\frac {\tanh ^{-1}(\cosh (c+d x))}{a d}+\frac {\cosh (c+d x)}{d (a+i a \sinh (c+d x))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2727
Rule 2826
Rule 3855
Rubi steps
\begin {align*} \int \frac {\text {csch}(c+d x)}{a+i a \sinh (c+d x)} \, dx &=-\left (i \int \frac {1}{a+i a \sinh (c+d x)} \, dx\right )+\frac {\int \text {csch}(c+d x) \, dx}{a}\\ &=-\frac {\tanh ^{-1}(\cosh (c+d x))}{a d}+\frac {\cosh (c+d x)}{d (a+i a \sinh (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 52, normalized size = 1.27 \begin {gather*} -\frac {\text {sech}(c+d x) \left (-1+\tanh ^{-1}\left (\sqrt {\cosh ^2(c+d x)}\right ) \sqrt {\cosh ^2(c+d x)}+i \sinh (c+d x)\right )}{a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.01, size = 36, normalized size = 0.88
method | result | size |
derivativedivides | \(\frac {-\frac {2 i}{-i+\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}+\ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}\) | \(36\) |
default | \(\frac {-\frac {2 i}{-i+\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}+\ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}\) | \(36\) |
risch | \(\frac {2}{d a \left ({\mathrm e}^{d x +c}-i\right )}+\frac {\ln \left ({\mathrm e}^{d x +c}-1\right )}{d a}-\frac {\ln \left ({\mathrm e}^{d x +c}+1\right )}{d a}\) | \(54\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 62, normalized size = 1.51 \begin {gather*} -\frac {\log \left (e^{\left (-d x - c\right )} + 1\right )}{a d} + \frac {\log \left (e^{\left (-d x - c\right )} - 1\right )}{a d} + \frac {2}{{\left (a e^{\left (-d x - c\right )} + i \, a\right )} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.42, size = 57, normalized size = 1.39 \begin {gather*} -\frac {{\left (e^{\left (d x + c\right )} - i\right )} \log \left (e^{\left (d x + c\right )} + 1\right ) - {\left (e^{\left (d x + c\right )} - i\right )} \log \left (e^{\left (d x + c\right )} - 1\right ) - 2}{a d e^{\left (d x + c\right )} - i \, a d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \frac {i \int \frac {\operatorname {csch}{\left (c + d x \right )}}{\sinh {\left (c + d x \right )} - i}\, dx}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.43, size = 48, normalized size = 1.17 \begin {gather*} -\frac {\frac {\log \left (e^{\left (d x + c\right )} + 1\right )}{a} - \frac {\log \left (e^{\left (d x + c\right )} - 1\right )}{a} - \frac {2}{a {\left (e^{\left (d x + c\right )} - i\right )}}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.88, size = 56, normalized size = 1.37 \begin {gather*} -\frac {2\,\mathrm {atan}\left (\frac {{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\sqrt {-a^2\,d^2}}{a\,d}\right )}{\sqrt {-a^2\,d^2}}+\frac {2}{a\,d\,\left ({\mathrm {e}}^{c+d\,x}-\mathrm {i}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________